import { useTable, LIST_TYPE } from '@crud/index';
import { getAccountList } from '@/api/crm-kgj/auth';
// 表格
export const useTableList = (options: any = {}) => {
  const columns = [
    { label: '页面', prop: 'time', minWidth: '170' },
    { label: '08/08', prop: 'name', minWidth: '170' },
    { label: '08/09', prop: 'role_name', minWidth: '170' },
    { label: '08/10', prop: 'name', minWidth: '170' },
    { label: '08/11', prop: 'name', minWidth: '170' }
  ];

  return useTable({
    ...options,
    type: LIST_TYPE.KGJ,
    params: {},
    usePagination: false,
    columns: columns,
    getList: getAccountList
  });
};
